package com.ruoyi.quality.service;

import com.ruoyi.quality.domain.vo.QualityClassificationDataVo;
import com.ruoyi.quality.domain.bo.QualityClassificationDataBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.quality.domain.vo.QualityClassificationUserData;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.List;

/**
 * 分级得分Service接口
 *
 * @author ruoyi
 * @date 2023-12-06
 */
public interface IQualityClassificationDataService {

    /**
     * 查询分级得分
     */
    QualityClassificationDataVo queryById(Long id);

    QualityClassificationDataVo validByBo(QualityClassificationDataBo bo);

    BigDecimal queryTotalByUserId(Long id);

    /**
     * 查询分级得分
     */
    List<QualityClassificationDataVo> queryByIds(Collection<Long> ids);

    /**
     * 查询分级得分列表
     */
    TableDataInfo<QualityClassificationDataVo> queryPageList(QualityClassificationDataBo bo, PageQuery pageQuery);

    /**
     * 查询分级得分列表
     */
    List<QualityClassificationDataVo> queryList(QualityClassificationDataBo bo);

    List<QualityClassificationUserData> queryUserList(QualityClassificationDataBo bo);

    List<QualityClassificationUserData> queryProgressList(QualityClassificationDataBo bo);

    /**
     * 新增分级得分
     */
    Boolean insertByBo(QualityClassificationDataBo bo);

    /**
     * 修改分级得分
     */
    Boolean updateByBo(QualityClassificationDataBo bo);

    /**
     * 校验并批量删除分级得分信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
